﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductPriceForm.ascx.cs"
    Inherits="SalesManagement.Controls.List.ProductPriceForm" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Window ID="winDetails" runat="server" Title="Giá bán" Hidden="true" Width="300"
    Height="140" Resizable="false" Layout="Fit" Modal="true" Icon="Money" Padding="5">
    <Items>
        <ext:FormPanel ID="FormPrice" runat="server" Frame="false" Header="false" LabelWidth="80"
            Border="false" BodyStyle="background-color:transparent;" BodyBorder="false" Layout="row" MonitorValid="true">
            <Items>
                <ext:Hidden ID="txtProductID" runat="server" />
                <ext:Hidden ID="txtPriceId" runat="server" />
                <ext:DateField ID="dfApplyDate" runat="server" FieldLabel="Ngày áp dụng" Format="dd/MM/yyyy"
                    AllowBlank="false" BlankText="Không được bỏ trống" />
                <ext:NumberField runat="server" ID="txtPrice" FieldLabel="Giá" MaxLength="12" AllowBlank="false"
                    BlankText="Không được bỏ trống">
                </ext:NumberField>
            </Items>
            <Listeners>
                <ClientValidation Handler="#{btnSave}.setDisabled(!valid);" />
            </Listeners>
        </ext:FormPanel>
    </Items>
    <Buttons>
        <ext:Button ID="btnSave" runat="server" Text="Lưu" Icon="Disk">
            <DirectEvents>
                <Click OnEvent="btnSave_Click">
                    <EventMask ShowMask="true" Msg="Đang lưu..." MinDelay="1000" />
                </Click>
            </DirectEvents>
        </ext:Button>
        <ext:Button ID="btnCancel" runat="server" Text="Hủy bỏ" Icon="Cancel">
            <Listeners>
                <Click Handler="#{winDetails}.hide();" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
